package general.messages;

import org.lwjgl.util.vector.Vector3f;

public class UpdateUnitMessage extends Message{

	public final int UnitID;
	public final Vector3f Position;
	public final Vector3f Destination;
	public final float Speed;
	
	public UpdateUnitMessage(int unitID, Vector3f position, Vector3f destination, float speed) {
		super();
		this.UnitID = unitID;
		this.Position = position;
		this.Destination = destination;
		this.Speed = speed;
	}

	@Override
	public String toString() {
	
		return super.toString() + " " + UnitID + " is at " + Position.toString() + ", moves towards " + Destination + " with a speed of " + Speed ;
	}
	
}
